package com.example.Goods.mapper;

import com.example.Goods.domain.Goods;
import com.example.Goods.domain.Vo.goodsListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper {
    List<goodsListVo> selectGoods(Goods goods);

    void insertGoods(Goods goods);

    void updateGoodsById(Goods goods);

    void delGoodsById(@Param("goodsId") String goodsId);


    public List<Goods> getOtherGoodsList(Integer userId);

    public List<Goods> getGoodsByUserId(Integer userId);
}
